package cn.yhjz.platform.system.util;

import cn.yhjz.platform.system.entity.SysUser;

public class LoginUtil {
    private final static ThreadLocal<SysUser> currentUserTl = new ThreadLocal<>();

    public static SysUser getCurrentUser() {
        return currentUserTl.get();
    }

    public static void setCurrentUser(SysUser sysUser) {
        currentUserTl.set(sysUser);
    }
}
